package enumerated.tij;

public enum OzWitch {
	WEST("west"),
	NORTH("north"),
	EAST("east"),
	SOUTH("sorth");
	
	String description;
	private OzWitch(String description){
		this.description = description;
	}
	
	// Adding method for Enum
	public String getDescription(){
		return description;
	}
	
	// Override Enum's toString()
	public String toString(){
		return name() + " | " + ordinal() + " | " + getDescription();
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		for(OzWitch witch : OzWitch.values())
			System.out.println(witch);
	}
}
/* Outputs:
WEST | 0 | west
NORTH | 1 | north
EAST | 2 | east
SOUTH | 3 | sorth
 */
